home *** CD-ROM | disk | FTP | other *** search
- ############################################################
- #
- # SENDMAIL CONFIGURATION FILE
- #
- # MIT Artificial Intelligence Laboratory
- # David M. Siegel (dms@hermes.ai.mit.edu)
- #
- # General configuration information:
- # * Define 'P' for uucp forwarding host if machine does not
- # run uucp.
- # * If machine runs uucp define uucp hostname as 'U'.
- # * Put additional host names in /etc/mailhosts file if this
- # machine accepts mail for them. Create empty file otherwise.
- # * Put chaoshosts in /etc/chaoshosts. Create empty file
- # otherwise.
- # * To have chaosnet only hosts routed via this host, included
- # them in /etc/chaosonly. Otherwise create empty file.
- #
- ############################################################
-
- # domain
- DDAI.MIT.EDU
-
- # official hostnames
- Dj$w
- Cw$w
-
- # UUCP forwarding host (define this or uucp hostname, but not both)
- #DPHERMES.AI.MIT.EDU
-
- # UUCP hostname
- DUmit-hermes
- CUmit-hermes hermes
-
- # List of chaosnet hosts
- FC/etc/chaoshosts
-
- # List of host only on the chaosnet
- FE/etc/chaosonly
-
- ############################################################
- #
- # General configuration information
- #
- ############################################################
-
- DV4.7
-
- ######################
- # Special macros #
- ######################
-
- # my name
- DnMAILER-DAEMON
- # UNIX header format
- DlFrom $g $d
- # delimiter (operator) characters
- Do:%@!^=/[]
- # format of a total name
- Dq$g$?x ($x)$.
- # SMTP login message
- De$j Sendmail $v/$V ready at $b
-
- #################
- # Options #
- #################
-
- # location of alias file
- OA/usr/lib/aliases
- # rebuild alias database if needed
- OD
- # default delivery mode (deliver in background)
- Odbackground
- # (don't) connect to "expensive" mailers
- #Oc
- # temporary file mode
- OF0644
- # default GID
- Og1
- # location of help file
- OH/usr/lib/sendmail.hf
- # log level
- OL9
- # Send mail to self even in aliases
- Om
- # default messages to old style
- Oo
- # queue directory
- OQ/usr/spool/mqueue
- # read timeout -- violates protocols
- Or2h
- # status file
- OS/usr/lib/sendmail.st
- # queue up everything before starting transmission
- Os
- # default timeout interval
- OT3d
- # time zone names (V6 only)
- OtEST,EDT
- # default UID
- Ou1
- # wizard's password
- OWrhWkkc*B2TH1c
-
- ###########################
- # Message precedences #
- ###########################
-
- Pfirst-class=0
- Pspecial-delivery=100
- Pjunk=-100
-
- #####################
- # Trusted users #
- #####################
-
- Troot daemon uucp network dms
-
- #########################
- # Format of headers #
- #########################
-
- H?P?Return-Path: <$g>
- HReceived: $?sfrom $s $.by $w; $b
- H?D?Resent-Date: $a
- H?D?Date: $a
- H?F?Resent-From: $q
- H?F?From: $q
- H?x?Full-Name: $x
- HSubject:
- # HPosted-Date: $a
- # H?l?Received-Date: $b
- H?M?Resent-Message-Id: <$t.$i@$j>
- H?M?Message-Id: <$t.$i@$j>
-
- ############################################################
- #
- # Rewriting rules:
- #
- # +--> 0 --> resolved address
- # |
- # | +--> 1 --> S --+
- # addr --> 3 ---> D --| |--> 4 --> message
- # +--> 2 --> R --+
- #
- # D - sender domaion addition
- # S - mailer specific sender rewriting
- # R - mailer specific recipient rewriting
- #
- ############################################################
-
- ################################
- # Sender Field Pre-rewriting #
- ################################
- S1
-
- ###################################
- # Recipient Field Pre-rewriting #
- ###################################
- S2
-
- #################################
- # Final Output Post-rewriting #
- #################################
- S4
-
- R@ $@ handle <> error addr
- R$*<$+>$* $1$2$3 defocus
- R@$+:$+:$+ $@@$1,$2:$3 <route-addr> canonical
-
- # delete duplicate local names -- mostly for arpaproto.mc
- R$+%$=w@$=w $1@$3 u%UCB@UCB => u@UCB
-
- ###########################
- # Name Canonicalization #
- ###########################
- S3
-
- # handle "from:<>" special case
- R<> $@@ turn into magic token
-
- # basic textual canonicalization
- R$*<$+>$* $2 basic RFC821/822 parse
- R$+ at $+ $1@$2 "at" -> "@" for RFC 822
- R$*<$*>$* $1$2$3 in case recursive
-
- # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
- R@$+,$+ @$1:$2 change all "," to ":"
-
- # more miscellaneous cleanup
- R$+:$*;@$+ $@$1:$2;@$3 list syntax
- R$+@$+ $@$1<@$[$2$]> focus on domain
-
- # don't remove % if we have a uucp type address
- R$-!$+ $@$1!$2 return unmodified
-
- # convert old-style addresses to a domain-based address
- R$+%$- $@$1<@$[$2$]> user%hosta
-
- #####################
- # Resolve Mailers #
- #####################
- S0
-
- # delete the local info
- R$*<$*$=w>$* $1<$2>$4 thishost
- R$*<@> $1 strip nul trash
-
- # make canonical
- R$*<$*>$* $1$2$3 defocus
- R$+ $:$>3$1 make canonical
-
- # handle special cases
- R@ $#local$:MAILER-DAEMON handle <> form
- R$*<@[$+]>$* $#tcp$@[$2]$:$1@[$2]$3 numeric internet spec
-
- # handle ChaosNet now
- R$*<@$=C>$* $#chaos$@$2$:$1@$2
-
- # all other internet mail
- R$*<@$+>$* $#tcp$@$2$:$1<@$2>$3
-
- # handle uucp style names by sending to forwarding host or sending direct
- R$-!$+ $?P$#tcp$@$P$:$1!$2$|$#uucp$@$1$:$2$.
-
- # handle local mail
- R$* $#local$:$1
-
- ############################################################
- #
- # Local and Program Mailer specification
- #
- ############################################################
-
- Mlocal, P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
- Mprog, P=/bin/sh, F=lsDFMe, S=10, R=20, A=sh -c $u
-
- S10
- R@ MAILER-DAEMON errors to mailer-daemon
-
- S20
- R$+ $@$1 Noop rule
-
- ############################################################
- #
- # Arpanet TCP Mailer specification
- #
- ############################################################
-
- Mtcp, P=[IPC], F=msDFMueXL, S=27, R=28, A=IPC $h, E=\r\n
-
- S27
- R$- $1@$w tack our host onto userid
- R$*@$=E $1%$2@$w if chaos-only forward, add %host
-
- S28
- R$- $1@$w tack our host onto userid
- R$*@$=E $1%$2@$w if chaos-only forward, add %host
-
- ################################################################
- #
- # Chaosnet Mailer specification
- #
- ################################################################
-
- Mchaos, P=/usr/lib/mailers/chaosmail, F=nsmFDuhC, S=25, R=26, A=chaosmail $h $u
-
- S25
- R$- $1@$w tack our host onto userid
-
- S26
- R$- $1@$w tack our host onto userid
-
- ############################################################
- #
- # UUCP Mailer specification
- #
- ############################################################
-
- Muucp, P=/usr/bin/uux, F=sDFMhuU, S=13, R=23, M=100000,
- A=uux - -r -z -a$f -gC $h!rmail ($u)
-
- S13
- R$=U!$+ $2 strip local name
- R$+ $:$U!$1 stick on our host name
-
- S23
- R$=U!$+ $2 strip local name
-